<?php
/**
 * Loop display content used as a fallback in all conditions when a loop-content-LOCATION.php doesn't exist in this child theme
 *
 * @package Wonderflux Girder child theme
 */
?>

<?php
$wfx = new wflux_display_ex;
?>

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

	<h2 class="entry-title"><?php the_title(); ?></h2>

	<div class="entry-content">

		<?php the_content(''); ?>
		<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'wonderflux' ), 'after' => '</div>' ) ); ?>

		<?php

		// We dont want to use our permalink display function when we are just viewing a single post
		if (!is_single()) {

			//Function that creates an image that is linked to the post

			/* SIMPLE EXAMPLE */
			//$wfx->wf_perma_img('');

			/* INTERMEDIATE EXAMPLE */
			/* Using one parameter to set image used */
			//$wfx->wf_perma_img('intro=Read my article&imgname=button-read-more-alt.png');


			/* ADVANCED EXAMPLE 2 */
			/* All parameters! */
			$wfx->wf_perma_img( array (
				'intro' => 'Continue reading the article',
				'seperator' => ' - ',
				'imgclass' => 'button-read-more-sml',
				'imgname' => 'button-read-more-alt-sml.png',
				'imgwidth' => 100,
				'imgheight' => 20
			) );

		}

		?>

	</div>

</div>